package com.hehanpeng.springbootapi.exception;

import org.springframework.validation.Errors;

/**
 * @author hehanpeng
 * @date 2018/4/24 20:25
 */
public class InvalidRequestException extends RuntimeException {
    private Errors errors;

    public Errors getErrors() {
        return errors;
    }

    public void setErrors(Errors errors) {
        this.errors = errors;
    }

    public InvalidRequestException(String message, Errors errors) {
        super(message);
        this.errors = errors;
    }
}
